<%@ page import="cn.com.betasoft.dsat.web.ap.helpers.MoGuiInterpreter; cn.com.betasoft.dsat.web.ap.helpers.PSManagedObjectsHelper; gui.models.form.Renderable" %>

<%~ formFor(mo, [id:"indicatorParamsForm", name:"PSManagedObject_indicatorParams", interpreter:new MoGuiInterpreter()]) { form ->
    if(action.equals("indicator")){
        mo.getIndicator(name).getDescriptor().getArgumentDescriptors().each { ad ->
            Renderable renderable = PSManagedObjectsHelper.createRenderable(form, ad , null, false);
            if (renderable != null) {
                out.print renderable.toTag();
            }
        };
    }else {
        mo.getOperation(name).getDescriptor().getArgumentDescriptors().each { ad ->
            Renderable renderable = PSManagedObjectsHelper.createRenderable(form, ad , null, false);
            if (renderable != null) {
                out.print renderable.toTag();
            }
        };
    }
} %>